package com.manager.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.manager.mapper.AuthorityManager;
import com.manager.pojo.LoginUser;

@Service
public class AuthorityService {
    @Autowired
	private AuthorityManager manager;
	public LoginUser selectUser(String username){
		return  manager.selectUserByUser(username);
	}
	public List<String> selectRolesByUsername(String username){
		return manager.selectRolesByUser(username);
	}
}
